﻿using MPosters.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MPosters.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        private PosterStoreEntities db = new PosterStoreEntities();

        public ViewResult Index()
        {
            var posters = db.Posters;
            return View(posters.ToList());
        }
    }

}

